package sixth.group.domain;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class Ord_dis_matchExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public Ord_dis_matchExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andODidIsNull() {
            addCriterion("o_did is null");
            return (Criteria) this;
        }

        public Criteria andODidIsNotNull() {
            addCriterion("o_did is not null");
            return (Criteria) this;
        }

        public Criteria andODidEqualTo(Integer value) {
            addCriterion("o_did =", value, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidNotEqualTo(Integer value) {
            addCriterion("o_did <>", value, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidGreaterThan(Integer value) {
            addCriterion("o_did >", value, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_did >=", value, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidLessThan(Integer value) {
            addCriterion("o_did <", value, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidLessThanOrEqualTo(Integer value) {
            addCriterion("o_did <=", value, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidIn(List<Integer> values) {
            addCriterion("o_did in", values, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidNotIn(List<Integer> values) {
            addCriterion("o_did not in", values, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidBetween(Integer value1, Integer value2) {
            addCriterion("o_did between", value1, value2, "oDid");
            return (Criteria) this;
        }

        public Criteria andODidNotBetween(Integer value1, Integer value2) {
            addCriterion("o_did not between", value1, value2, "oDid");
            return (Criteria) this;
        }

        public Criteria andODdishesidIsNull() {
            addCriterion("o_ddishesid is null");
            return (Criteria) this;
        }

        public Criteria andODdishesidIsNotNull() {
            addCriterion("o_ddishesid is not null");
            return (Criteria) this;
        }

        public Criteria andODdishesidEqualTo(Integer value) {
            addCriterion("o_ddishesid =", value, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidNotEqualTo(Integer value) {
            addCriterion("o_ddishesid <>", value, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidGreaterThan(Integer value) {
            addCriterion("o_ddishesid >", value, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_ddishesid >=", value, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidLessThan(Integer value) {
            addCriterion("o_ddishesid <", value, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidLessThanOrEqualTo(Integer value) {
            addCriterion("o_ddishesid <=", value, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidIn(List<Integer> values) {
            addCriterion("o_ddishesid in", values, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidNotIn(List<Integer> values) {
            addCriterion("o_ddishesid not in", values, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidBetween(Integer value1, Integer value2) {
            addCriterion("o_ddishesid between", value1, value2, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODdishesidNotBetween(Integer value1, Integer value2) {
            addCriterion("o_ddishesid not between", value1, value2, "oDdishesid");
            return (Criteria) this;
        }

        public Criteria andODorderidIsNull() {
            addCriterion("o_dorderid is null");
            return (Criteria) this;
        }

        public Criteria andODorderidIsNotNull() {
            addCriterion("o_dorderid is not null");
            return (Criteria) this;
        }

        public Criteria andODorderidEqualTo(Integer value) {
            addCriterion("o_dorderid =", value, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidNotEqualTo(Integer value) {
            addCriterion("o_dorderid <>", value, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidGreaterThan(Integer value) {
            addCriterion("o_dorderid >", value, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_dorderid >=", value, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidLessThan(Integer value) {
            addCriterion("o_dorderid <", value, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidLessThanOrEqualTo(Integer value) {
            addCriterion("o_dorderid <=", value, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidIn(List<Integer> values) {
            addCriterion("o_dorderid in", values, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidNotIn(List<Integer> values) {
            addCriterion("o_dorderid not in", values, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidBetween(Integer value1, Integer value2) {
            addCriterion("o_dorderid between", value1, value2, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODorderidNotBetween(Integer value1, Integer value2) {
            addCriterion("o_dorderid not between", value1, value2, "oDorderid");
            return (Criteria) this;
        }

        public Criteria andODquantityIsNull() {
            addCriterion("o_dquantity is null");
            return (Criteria) this;
        }

        public Criteria andODquantityIsNotNull() {
            addCriterion("o_dquantity is not null");
            return (Criteria) this;
        }

        public Criteria andODquantityEqualTo(Integer value) {
            addCriterion("o_dquantity =", value, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityNotEqualTo(Integer value) {
            addCriterion("o_dquantity <>", value, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityGreaterThan(Integer value) {
            addCriterion("o_dquantity >", value, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityGreaterThanOrEqualTo(Integer value) {
            addCriterion("o_dquantity >=", value, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityLessThan(Integer value) {
            addCriterion("o_dquantity <", value, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityLessThanOrEqualTo(Integer value) {
            addCriterion("o_dquantity <=", value, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityIn(List<Integer> values) {
            addCriterion("o_dquantity in", values, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityNotIn(List<Integer> values) {
            addCriterion("o_dquantity not in", values, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityBetween(Integer value1, Integer value2) {
            addCriterion("o_dquantity between", value1, value2, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODquantityNotBetween(Integer value1, Integer value2) {
            addCriterion("o_dquantity not between", value1, value2, "oDquantity");
            return (Criteria) this;
        }

        public Criteria andODuptimeIsNull() {
            addCriterion("o_duptime is null");
            return (Criteria) this;
        }

        public Criteria andODuptimeIsNotNull() {
            addCriterion("o_duptime is not null");
            return (Criteria) this;
        }

        public Criteria andODuptimeEqualTo(Date value) {
            addCriterion("o_duptime =", value, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeNotEqualTo(Date value) {
            addCriterion("o_duptime <>", value, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeGreaterThan(Date value) {
            addCriterion("o_duptime >", value, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeGreaterThanOrEqualTo(Date value) {
            addCriterion("o_duptime >=", value, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeLessThan(Date value) {
            addCriterion("o_duptime <", value, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeLessThanOrEqualTo(Date value) {
            addCriterion("o_duptime <=", value, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeIn(List<Date> values) {
            addCriterion("o_duptime in", values, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeNotIn(List<Date> values) {
            addCriterion("o_duptime not in", values, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeBetween(Date value1, Date value2) {
            addCriterion("o_duptime between", value1, value2, "oDuptime");
            return (Criteria) this;
        }

        public Criteria andODuptimeNotBetween(Date value1, Date value2) {
            addCriterion("o_duptime not between", value1, value2, "oDuptime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}